package com.algorithm.lesson_12;

import org.junit.Test;

public class LessonTest {

	@Test
	public void testMaxNoRepeatSubStr() {
		String str1 = "abcd";
		String str2 = "aabcb";
		String str3 = "qwnfenpglqdq";
		System.out.println(MaxNoRepeatSubStr.getMaxNoRepeatSubStr(str1));
		System.out.println(MaxNoRepeatSubStr.getMaxNoRepeatSubStr(str2));
		System.out.println(MaxNoRepeatSubStr.getMaxNoRepeatSubStr(str3));
	}

	@Test
	public void testMinSubContainLen() {
		String str1 = "abcde";
		String str2 = "ac";
		String str3 = "12345";
		String str4 = "344";
		System.out.println(MinSubContainLen.getMinSubContainLen(str1, str2));
		System.out.println(MinSubContainLen.getMinSubContainLen(str3, str4));
	}

	@Test
	public void testConcatMaxStr() {
		String arr1[] = new String[] { "abc", "de" };
		String arr2[] = new String[] { "b", "ba" };

		System.out.println("arr1 max concat str:" + ConcatMaxStr.getConcatMaxStr(arr1));
		System.out.println("arr2 max concat str:" + ConcatMaxStr.getConcatMaxStr(arr2));
	}
}
